#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <assert.h>
#include <cstdlib>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;

void test_pushback() {
	string s1 = "lsnm";
	vector<string> v1;
	v1.push_back(s1);
	v1.push_back(string("LSNM"));
	v1.push_back("Lsnm");
	v1[1] += "123";
	v1.pop_back();
	v1.resize(20, "");
	for (const auto& e : v1) {
		cout << e << " ";
	}
	cout << endl;
}

void test2() {
	vector<int> v1{1, 2, 3, 4, 5, 6, 778, 9};
	v1.insert(v1.begin()+4, 2,99);
	v1.resize(20);
	for (auto e : v1) {
		cout << e << " ";
	}
	cout << endl;
}


int main() {
	vector<int> v1;
	vector<int> v{ 1,2,3,4 };
	/*for (auto e : v) {
		cout << e << " ";
	}*/
	/*for (size_t i = 0; i < v.size(); i++) {
		cout << v[i] <<" ";
	}*/
	vector<int>::iterator it1 = v.begin();
	while (it1 != v.end()) {
		//cout << *it1 << " ";
		++it1;
	}
	//cout << endl;
	vector<int> v2(v);
	/*cout << int() << endl;
	cout << char() << endl;*/
	//vector<string> v5;
	string s1("lsnm");
	vector<string> v5(1,s1);
	vector<string> v6(1, "abcd");
	vector<string> v7(2, "abcd");
	vector<string> v8{ s1,"abcd","tyu" };
	vector<string> v9(v8);
	greater<int> gt;
	sort(v.begin(), v.end(), less<int>());

	//test_pushback();
	test2();
	return 0;
}